@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/*
pp表示百分数，我比较常用百分号和em为单位
*/
.w-10pp {
  width: 10%;
}
.w-20pp {
  width: 20%;
}
.w-30pp {
  width: 30%;
}
.w-40pp {
  width: 40%;
}
.w-50pp {
  width: 50%;
}
.w-60pp {
  width: 60%;
}
.w-70pp {
  width: 70%;
}
.w-80pp {
  width: 80%;
}
.w-90pp {
  width: 90%;
}
.w-100pp {
  width: 100%;
}
.w-5pp {
  width: 5%;
}
.w-15pp {
  width: 15%;
}
.w-25pp {
  width: 25%;
}
.w-35pp {
  width: 35%;
}
.w-45pp {
  width: 45%;
}
.w-55pp {
  width: 55%;
}
.w-65pp {
  width: 65%;
}
.w-75pp {
  width: 75%;
}
.w-85pp {
  width: 85%;
}
.w-95pp {
  width: 95%;
}
.w-1em {
  width: 1em;
}
.w-2em {
  width: 2em;
}
.w-3em {
  width: 3em;
}
.w-4em {
  width: 4em;
}
.w-5em {
  width: 5em;
}
.w-6em {
  width: 6em;
}
.w-7em {
  width: 7em;
}
.w-8em {
  width: 8em;
}
.w-9em {
  width: 9em;
}
.w-10em {
  width: 10em;
}
.w-11em {
  width: 11em;
}
.w-12em {
  width: 12em;
}
.w-13em {
  width: 13em;
}
.w-14em {
  width: 14em;
}
.w-15em {
  width: 15em;
}
.w-16em {
  width: 16em;
}

/* 外边距我基本也不怎么用px，调起来着实麻烦，还是em好，1em表示一个字体的长度 */
.mg-1em {
  margin: 1em 1em;
}
.mr-1em {
  margin-right: 1em;
}
.mb-1em {
  margin-bottom: 1em;
}
.ml-1em {
  margin-left: 1em;
}
.mt-1em {
  margin-top: 1em;
}
.mg-2em {
  margin: 2em 2em;
}
.mr-2em {
  margin-right: 2em;
}
.mb-2em {
  margin-bottom: 2em;
}
.ml-2em {
  margin-left: 2em;
}
.mt-2em {
  margin-top: 2em;
}
.mg-3em {
  margin: 3em 3em;
}
.mr-3em {
  margin-right: 3em;
}
.mb-3em {
  margin-bottom: 3em;
}
.ml-3em {
  margin-left: 3em;
}
.mt-3em {
  margin-top: 3em;
}
.mg-4em {
  margin: 4em 4em;
}
.mr-4em {
  margin-right: 4em;
}
.mb-4em {
  margin-bottom: 4em;
}
.ml-4em {
  margin-left: 4em;
}
.mt-4em {
  margin-top: 4em;
}
.mg-5em {
  margin: 5em 5em;
}
.mr-5em {
  margin-right: 5em;
}
.mb-5em {
  margin-bottom: 5em;
}
.ml-5em {
  margin-left: 5em;
}
.mt-5em {
  margin-top: 5em;
}
.mg-6em {
  margin: 6em 6em;
}
.mr-6em {
  margin-right: 6em;
}
.mb-6em {
  margin-bottom: 6em;
}
.ml-6em {
  margin-left: 6em;
}
.mt-6em {
  margin-top: 6em;
}
.mg-7em {
  margin: 7em 7em;
}
.mr-7em {
  margin-right: 7em;
}
.mb-7em {
  margin-bottom: 7em;
}
.ml-7em {
  margin-left: 7em;
}
.mt-7em {
  margin-top: 7em;
}
.mg-8em {
  margin: 8em 8em;
}
.mr-8em {
  margin-right: 8em;
}
.mb-8em {
  margin-bottom: 8em;
}
.ml-8em {
  margin-left: 8em;
}
.mt-8em {
  margin-top: 8em;
}
.mg-9em {
  margin: 9em 9em;
}
.mr-9em {
  margin-right: 9em;
}
.mb-9em {
  margin-bottom: 9em;
}
.ml-9em {
  margin-left: 9em;
}
.mt-9em {
  margin-top: 9em;
}
.mg-10em {
  margin: 10em 10em;
}
.mr-10em {
  margin-right: 10em;
}
.mb-10em {
  margin-bottom: 10em;
}
.ml-10em {
  margin-left: 10em;
}
.mt-10em {
  margin-top: 10em;
}